package com.lili.member.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("li_member_points_history")
public class MemberPointsHistory {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "创建者", hidden = true)
    String createBy;


    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间", hidden = true)
    LocalDateTime createTime;

    @ApiModelProperty(value = "会员ID")
    String memberId;


    @ApiModelProperty(value = "会员名称")
    String memberName;


    Long point;


    Long beforePoint;


    Long variablePoint;


    String content;


    String pointType;

}
